package com.hibernate;


/**
 * Unit entity. @author MyEclipse Persistence Tools
 */

public class Unit implements java.io.Serializable {

	// Fields

	private Integer id;
	private Category category;
	private String unitname;
	private String description;

	// Constructors

	/** default constructor */
	public Unit() {
	}

	/** full constructor */
	public Unit(Category category, String unitname, String description) {
		this.category = category;
		this.unitname = unitname;
		this.description = description;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Category getCategory() {
		return this.category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}

	public String getUnitname() {
		return this.unitname;
	}

	public void setUnitname(String unitname) {
		this.unitname = unitname;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

}